<div class="form-box" id="login-box">
	<div class="header logoAdminAlegro">
		<img alt="Alegro Móveis" src="<?php echo base_url('bootstrap/img/logo.png');?>">
	</div>
	<?php 
	//Abre o Form
	echo form_open("alegro/logar");
	?>
		<div class="body bg-gray">
			<?php           
				echo validation_errors('<div class="alert alert-danger alert-dismissable">', '</div>');
				if ($this->session->flashdata('loginError')) {
					$html = '<div class="alert alert-danger alert-dismissable">';
					$html .= '<i class="fa fa-warning"></i>';
					$html .= $this->session->flashdata('loginError');
					$html .= '</div>';
					echo $html;
				}
			?>                       
			<div class="form-group">
				<?php echo form_input(array('name'=>'usuario', 'placeholder'=>'E-mail', 'class'=>'form-control'), set_value('usuario')); ?>				
			</div>
			<div class="form-group">
				<?php echo form_password(array('name'=>'senha', 'placeholder'=> 'Senha', 'class'=>'form-control'))?>				
			</div>
<!-- 			<div class="form-group"> -->
<!-- 				<input type="checkbox" name="remember_me" /> Remember me -->
<!-- 			</div> -->
		</div>
		<div class="footer">			
			<?php //echo form_submit(array('name'=>'logar','class'=>'btn bg-olive btn-block'), 'Logar'); ?>
			<?php echo form_submit(array('name'=>'logar','class'=>'btn btnAdminAlegro btn-block'), 'Logar'); ?>
			<!-- 
			<p><a href="#" class="linkAdminAlegro">Esqueci a senha</a></p>
			 -->
		</div>
	<?php 
	//Fecha o Form
	echo form_close();
	?>
</div>
